package JavaSEAdvance.day05_API;

import java.util.Arrays;

/**
 * @author Xiao
 * @date 2021/7/21
 */
public class d502_SystemDemo01 {
    /**
     * System
     */
    public static void main(String[] args) {
        long start = System.currentTimeMillis();
        int sum = 0;
        for (int i = 0; i < 10000; i++) {
            sum += i;
        }
        long end = System.currentTimeMillis();
        System.out.println(end - start);
        System.out.println("--------");
        int[] arr1 = {11, 22, 33, 44, 55};
        int[] arr2 = new int[2];
        System.arraycopy(arr1,1,arr2,0,2);
        System.out.println(Arrays.toString(arr2));

    }
}
